package com.ruoyi.jeeplus.modules.screen.screen_mqtt_pv_data.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jeeplus.modules.screen.screen_mqtt_pv_data.mapper.mqtt_pv_dataMapper;
import com.ruoyi.jeeplus.modules.screen.screen_mqtt_pv_data.domain.mqtt_pv_data;
import com.ruoyi.jeeplus.modules.screen.screen_mqtt_pv_data.service.Imqtt_pv_dataService;

/**
 * 存储MQTT光伏发电Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-07
 */
@Service
public class mqtt_pv_dataServiceImpl implements Imqtt_pv_dataService 
{
    @Autowired
    private mqtt_pv_dataMapper mqtt_pv_dataMapper;

    /**
     * 查询存储MQTT光伏发电
     * 
     * @param id 存储MQTT光伏发电主键
     * @return 存储MQTT光伏发电
     */
    @Override
    public mqtt_pv_data selectmqtt_pv_dataById(Long id)
    {
        return mqtt_pv_dataMapper.selectmqtt_pv_dataById(id);
    }

    /**
     * 查询存储MQTT光伏发电列表
     * 
     * @param mqtt_pv_data 存储MQTT光伏发电
     * @return 存储MQTT光伏发电
     */
    @Override
    public List<mqtt_pv_data> selectmqtt_pv_dataList(mqtt_pv_data mqtt_pv_data)
    {
        return mqtt_pv_dataMapper.selectmqtt_pv_dataList(mqtt_pv_data);
    }

    /**
     * 新增存储MQTT光伏发电
     * 
     * @param mqtt_pv_data 存储MQTT光伏发电
     * @return 结果
     */
    @Override
    public int insertmqtt_pv_data(mqtt_pv_data mqtt_pv_data)
    {
        return mqtt_pv_dataMapper.insertmqtt_pv_data(mqtt_pv_data);
    }

    /**
     * 修改存储MQTT光伏发电
     * 
     * @param mqtt_pv_data 存储MQTT光伏发电
     * @return 结果
     */
    @Override
    public int updatemqtt_pv_data(mqtt_pv_data mqtt_pv_data)
    {
        return mqtt_pv_dataMapper.updatemqtt_pv_data(mqtt_pv_data);
    }

    /**
     * 批量删除存储MQTT光伏发电
     * 
     * @param ids 需要删除的存储MQTT光伏发电主键
     * @return 结果
     */
    @Override
    public int deletemqtt_pv_dataByIds(Long[] ids)
    {
        return mqtt_pv_dataMapper.deletemqtt_pv_dataByIds(ids);
    }

    /**
     * 删除存储MQTT光伏发电信息
     * 
     * @param id 存储MQTT光伏发电主键
     * @return 结果
     */
    @Override
    public int deletemqtt_pv_dataById(Long id)
    {
        return mqtt_pv_dataMapper.deletemqtt_pv_dataById(id);
    }
}
